/*
 * dimmer.h
 *
 * Created: 15.12.2011 15:33:46
 *  Author: Halfmann
 */ 


#ifndef DIMMER_H_
#define DIMMER_H_

#include <avr/io.h>
#include <avr/interrupt.h>
#include "globals.h"

#define PWM_DDR DDRD
#define PWM_PORT PORTD
#define PWM_PIN PD7

void dimmer_init(void);
void dimmer_setPercent(uint8_t valuePercent);
void dimmer_setPercentwithoutLCD(uint8_t valuePercent);
uint8_t dimmer_getValuePercent();
void dimmer_increaseTenPercent(void);
void dimmer_decreaseTenPercent(void);

#endif /* DIMMER_H_ */